/*
 * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.micode.notes.tool;

/**
 * GTaskStringUtils 类定义了 GTASK（Google Task API）中使用的字符串常量。
 * 这些字符串主要用于 JSON 结构，帮助处理任务数据的同步、创建、更新和删除操作。
 */
public class GTaskStringUtils {

    // 操作相关的 JSON 字段
    public final static String GTASK_JSON_ACTION_ID = "action_id"; // 操作 ID
    public final static String GTASK_JSON_ACTION_LIST = "action_list"; // 操作列表
    public final static String GTASK_JSON_ACTION_TYPE = "action_type"; // 操作类型

    // 操作类型的具体值
    public final static String GTASK_JSON_ACTION_TYPE_CREATE = "create"; // 创建任务
    public final static String GTASK_JSON_ACTION_TYPE_GETALL = "get_all"; // 获取所有任务
    public final static String GTASK_JSON_ACTION_TYPE_MOVE = "move"; // 移动任务
    public final static String GTASK_JSON_ACTION_TYPE_UPDATE = "update"; // 更新任务

    // 任务和列表相关的 JSON 字段
    public final static String GTASK_JSON_CREATOR_ID = "creator_id"; // 创建者 ID
    public final static String GTASK_JSON_CHILD_ENTITY = "child_entity"; // 子任务或子列表
    public final static String GTASK_JSON_CLIENT_VERSION = "client_version"; // 客户端版本号
    public final static String GTASK_JSON_COMPLETED = "completed"; // 任务是否完成
    public final static String GTASK_JSON_CURRENT_LIST_ID = "current_list_id"; // 当前列表 ID
    public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id"; // 默认列表 ID
    public final static String GTASK_JSON_DELETED = "deleted"; // 任务是否被删除
    public final static String GTASK_JSON_DEST_LIST = "dest_list"; // 目标列表
    public final static String GTASK_JSON_DEST_PARENT = "dest_parent"; // 目标父任务
    public final static String GTASK_JSON_DEST_PARENT_TYPE = "dest_parent_type"; // 目标父任务类型
    public final static String GTASK_JSON_ENTITY_DELTA = "entity_delta"; // 实体变更信息
    public final static String GTASK_JSON_ENTITY_TYPE = "entity_type"; // 实体类型（任务或组）
    public final static String GTASK_JSON_GET_DELETED = "get_deleted"; // 是否获取已删除的任务
    public final static String GTASK_JSON_ID = "id"; // 任务或列表的唯一标识 ID
    public final static String GTASK_JSON_INDEX = "index"; // 任务的索引位置
    public final static String GTASK_JSON_LAST_MODIFIED = "last_modified"; // 最后修改时间
    public final static String GTASK_JSON_LATEST_SYNC_POINT = "latest_sync_point"; // 最新同步时间点
    public final static String GTASK_JSON_LIST_ID = "list_id"; // 列表 ID
    public final static String GTASK_JSON_LISTS = "lists"; // 列表集合
    public final static String GTASK_JSON_NAME = "name"; // 任务或列表的名称
    public final static String GTASK_JSON_NEW_ID = "new_id"; // 新生成的任务 ID
    public final static String GTASK_JSON_NOTES = "notes"; // 任务的备注
    public final static String GTASK_JSON_PARENT_ID = "parent_id"; // 父任务 ID
    public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id"; // 前一个兄弟任务的 ID
    public final static String GTASK_JSON_RESULTS = "results"; // 结果集
    public final static String GTASK_JSON_SOURCE_LIST = "source_list"; // 源列表 ID
    public final static String GTASK_JSON_TASKS = "tasks"; // 任务集合
    public final static String GTASK_JSON_TYPE = "type"; // 类型字段
    public final static String GTASK_JSON_TYPE_GROUP = "GROUP"; // 组类型
    public final static String GTASK_JSON_TYPE_TASK = "TASK"; // 任务类型
    public final static String GTASK_JSON_USER = "user"; // 用户信息

    // MIUI Notes 特定的任务列表前缀
    public final static String MIUI_FOLDER_PREFFIX = "[MIUI_Notes]"; // MIUI 便签文件夹前缀

    // 便签默认分类
    public final static String FOLDER_DEFAULT = "Default"; // 默认分类
    public final static String FOLDER_CALL_NOTE = "Call_Note"; // 通话记录分类
    public final static String FOLDER_META = "METADATA"; // 元数据分类

    // 便签元数据字段
    public final static String META_HEAD_GTASK_ID = "meta_gid"; // 任务的 GTASK ID
    public final static String META_HEAD_NOTE = "meta_note"; // 便签元数据
    public final static String META_HEAD_DATA = "meta_data"; // 便签数据元信息
    public final static String META_NOTE_NAME = "[META INFO] DON'T UPDATE AND DELETE"; // 元信息备注（禁止修改和删除）
}
